What's the difference between catch {} and catch {continue;} in a c# foreach loop?
Posted
by kingpoop
on Stack Overflow
See other posts from Stack Overflow
or by kingpoop
Published on 2010-06-10T17:28:16Z
Indexed on
2010/06/10
17:32 UTC
Read the original article
Hit count: 146
c#
foreach (Widget item in items)
{
try
{
//do something...
}
catch { }
}
foreach (Widget item in items)
{
try
{
//do something...
}
catch { continue; }
}
© Stack Overflow or respective owner